/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_goods_class.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.tb_discharge_cargo_address.entity.TbDischargeCargoAddress;
import com.thinkgem.jeesite.modules.tb_goods_class.entity.TbGoodsClass;
import com.thinkgem.jeesite.modules.tb_goods_class.dao.TbGoodsClassDao;

/**
 * 货物类型管理Service
 * @author ZhangYangZe
 * @version 2017-05-13
 */
@Service
@Transactional(readOnly = true)
public class TbGoodsClassService extends CrudService<TbGoodsClassDao, TbGoodsClass> {

	public TbGoodsClass get(String id) {
		return super.get(id);
	}
	
	public List<TbGoodsClass> findList(TbGoodsClass tbGoodsClass) {
		return super.findList(tbGoodsClass);
	}
	
	public Page<TbGoodsClass> findPage(Page<TbGoodsClass> page, TbGoodsClass tbGoodsClass) {
		return super.findPage(page, tbGoodsClass);
	}
	
	@Transactional(readOnly = false)
	public void save(TbGoodsClass tbGoodsClass) {
		super.save(tbGoodsClass);
	}
	
	@Transactional(readOnly = false)
	public void delete(TbGoodsClass tbGoodsClass) {
		super.delete(tbGoodsClass);
	}
	public ArrayList<TbGoodsClass> CargoDetails(String id) {
		return dao.CargoDetails(id);
	}
}